package marchsoft.modules.four.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import marchsoft.base.BasicModel;



@Data
@TableName("e_practice_record") // 表名与实体类名不同步，需要另加表名
public class PracticeRecord extends BasicModel<PracticeRecord> {

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "安全分类id")
    private Long safeTypeId;

    @ApiModelProperty(value = "已做题目id集合(题库的id)")
    private String finishRepoIds;

    @ApiModelProperty(value = "已做题目答案(用户答案)")
    private String finishQuesAnswer;

    public PracticeRecord() {
    }

    public PracticeRecord(PracticeRecord practiceRecord) {
        this.id = practiceRecord.id;
        this.userId = practiceRecord.userId;
        this.safeTypeId = practiceRecord.safeTypeId;
        this.finishRepoIds = practiceRecord.finishRepoIds;
        this.finishQuesAnswer = practiceRecord.finishQuesAnswer;
        this.setCreateTime(practiceRecord.getCreateTime());
        this.setUpdateTime(practiceRecord.getUpdateTime());
        this.setCreateBy(practiceRecord.getCreateBy());
        this.setUpdateBy(practiceRecord.getUpdateBy());
        this.setDeleted(practiceRecord.getDeleted());
    }


}
